package cc.comac.mom.export;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.baomidou.mybatisplus.annotation.TableName;

import cc.comac.mom.util.BusinessKey;
import cc.comac.mom.util.ExcelColumn;
import lombok.Data;

@TableName(value = "equip_spare_parts_type")
@Data
public class SparePartsTypeImport {

	@NotNull(message = "类型编码不允许为空")
	@Length(max = 50, message = "类型编码长度不超过50")
	@BusinessKey(dbField = "category_number")
	@ExcelColumn(text = "类型编码")
	private String categoryNumber;
	
	@NotNull(message = "类型名称不允许为空")
	@Length(max = 50, message = "类型名称长度不超过50")
	@BusinessKey(dbField = "category_name")
	@ExcelColumn(text = "类型名称")
	private String categoryName;
	
	@Length(max = 1, message = "启用长度不超过1")
	@ExcelColumn(text = "启用名称")
	private int enable;
	
	@Length(max = 1, message = "备注长度不超过1")
	@ExcelColumn(text = "备注")
	private String remark;

}
